package com.stars.distributed.schedule.demo;

import com.stars.distributed.schedule.EnableDistributedSchedule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;


@SpringBootApplication(exclude = {HibernateJpaAutoConfiguration.class})
@ComponentScan(basePackages = {"com.stars.distributed.schedule.demo"}, useDefaultFilters = false,
        includeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = {org.springframework.stereotype.Component.class})})
public class SpringMVCApplication {

    private static Logger logger = LoggerFactory.getLogger(SpringMVCApplication.class);

    public static void main(String[] args) {
        logger.info("========================= Spring mvc is starting =========================");
        SpringApplication.run(SpringMVCApplication.class, args);
        logger.info("========================= Spring mvc startup success =========================");
    }

}
